# _*_conding:cp-1252-*-
# 教育机构：银杰教育
# 讲师：李伟
# 开发时间：2025/8/22 下午11:12
# http://shop.lemonban.com:8107/p/myCoupon/getCouponPage?current=1&size=20

import requests
import config
class GetcouponAPI:
    def __init__(self):
        self.url = config.BASE_URL1 +"/p/myCoupon/getCouponPage"

    def getcoupon(self,header,param):
        return requests.request(url=self.url,method="get",headers=header,params=param)


if __name__ == '__main__':
    token = "bearerdd66a88b-267b-4aa4-a4d6-5a404c03614b"
    header = {"Content-Type": "application/json",
              "Authorization": token}
    param = {"current": 1,
             "size": 20}
    data = GetcouponAPI().getcoupon(header=header, param=param)
    print(data.text)